package wzc.design_pattern.behaviour.strategy;

/**
 * @Author 那和不是个啥
 * @Date 2025/7/20
 * @Description
 */

public class CreditCardPayment implements PaymentStrategy{
    private String cardNumber;

    public CreditCardPayment(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    @Override
    public void pay(int amount) {
        System.out.println("使用信用卡支付 " + amount + " 元，卡号: " + cardNumber);
    }
}
